package com.letoken.platform.repo.ecommerce.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel(value = "新用户下单请求对象", description = "新用户下单请求对象")
public class UserPlaceReq  {

    @ApiModelProperty(value = "商品ID")
    @NotNull(message = "80500025")
    private Integer productId ;

    @ApiModelProperty(value = "购买数量")
    @NotNull(message = "80500026")
    @Min(value = 1L)
    private Integer quantity;

    @NotNull(message = "80500027")
    @ApiModelProperty(value = "商品规格sku")
    private Integer productSkuId;

    @NotNull(message = "80500028")
    @ApiModelProperty("地址Id")
    private Integer userAddressId;

    @ApiModelProperty("备注")
    @Length(max = 255,message = "80500029")
    private String remark;


    @ApiModelProperty(hidden = true)
    private Integer userId;

    private BigDecimal rmbRate;








}
